<template>
	<view class="content">
		<map style="width: 100%; height: 100vh;" :latitude="latitude" :longitude="longitude" :markers="covers">
		</map>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: 0, // 使用 marker点击事件 需要填写id
			title: 'map',
			latitude: 39.909,
			longitude: 116.39742,
			covers: [{
				id: 900000001,
				latitude: 28.6849 || 39.909,
				longitude: 115.9113 || 116.39742,
				iconPath: '/static/i11.png'
			}]
			// latitude: 115.8604,
		// 		longitude: 28.6806,
		}
	},
	onLoad(i) {
		let obj = JSON.parse(i.obj);
		this.covers = [{
			latitude: obj.latitude,
			longitude: obj.longitude,
			iconPath: '/static/i11.png'
		}]
	},
	methods: {


	}
}
</script>

<style lang="scss"></style>